<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文件上传及下载</title>
</head>
<body>
<h2>文件上传</h2>
<form action="${pageContext.request.contextPath }/toServerUp" enctype="multipart/form-data" method="post">
<table>
<tr>
<td>文件描述：</td>
<td><input type="text" name="description"></td>
</tr>
<tr>
<td>请选择文件：</td>
<td><input type="file" name="file"></td>
</tr>
<tr>
<td><input type="submit" value="上传文件"></td>
</tr>
</table>
</form>

   <hr>
   
    <form action="${pageContext.request.contextPath }/toServerDown"
        method="post">
        <input type="submit" value="下载">
    </form>

</body>
</html>